<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php wp_title ( '|', true,'right' ); ?></title>
   <?php do_action('templ_head_meta');?>
   
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <?php do_action('templ_head_css');?>
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
	<?php
    wp_enqueue_script('jquery');
	//wp_enqueue_script('cookie', get_template_directory_uri() . '/js/jquery.cookie.js', 'jquery', false);
    if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
    do_action('templ_head_js');
	remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
	
	if ( is_singular() && !is_page()){ 
	facebook_meta_tags($post); }
	wp_deregister_script( 'google-maps' );
	wp_head();
	?>
	<script src="<?php echo get_template_directory_uri()."/js/modernizr.js"; ?>"></script>
	<script src="<?php echo get_template_directory_uri()."/js/jquery-1.4.2.js" ?>"> type="text/javascript"></script>
   <script src="<?php echo get_template_directory_uri()."/js/jquery.nivo.slider.pack.js"?>"> type="text/javascript"></script>
    <!-- socialize.js script should only be included once -->
	<?php 
	include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
	if(is_plugin_active('gigya-socialize-for-wordpress/gigya.php') && get_option('users_can_register')){
	$gigya_opt = get_option('gigya_settings_fields');  ?>
	
	<script type="text/javascript">
	var conf=
	{
		siteName: 'localhost'
		,enabledProviders: 'facebook,twitter,yahoo,messenger,google,linkedin,myspace,aol,foursquare,orkut,vkontakte,renren,kaixin'
		,redirectURL: '<?php echo site_url(); ?>'
	}
	</script>
	<?php } ?>
    <!--Script for gigya plugin on page EOF-->
<script type='text/javascript' src='<?php echo get_template_directory_uri().'/js/jquery.hoverIntent.minified.js'?>'></script>
<?php 
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if(!is_plugin_active('UberMenu')){ ?>
<script type='text/javascript' src='<?php echo get_template_directory_uri().'/js/jquery.megamenu.1.2.js'?>'></script>
  <script type="text/javascript">
	jQuery(document).ready(function($){
	jQuery('.mega-menu').dcMegaMenu({
		rowItems: '1',
		speed: 'fast'
	});
	});
</script>
<?php } ?>
     <script src="<?php echo get_template_directory_uri()."/js/superfish.js"?>"></script>
     <script src="<?php echo get_template_directory_uri()."/js/menu.js"?>"></script>


	<!--[if IE]>
	<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/js/css3-mediaqueries.js" />
<![endif]-->
	<!-- mediaqueries script for fast loading css-->
    <script src="<?php echo get_template_directory_uri()."/js/modernizr-custom.js"?>"></script>   
</head>
<body <?php body_class(); ?>>
<?php templ_body_start(); // Body Start hooks?>
<?php // templ_get_top_header_navigation_above() ?>
<?php // templ_get_top_header_navigation() ?>

<div class="wrapper">
<?php templ_header_start(); // Header Start hooks?>
<div class="above_header header main-nav"><div class="mid-column"><?php  templ_get_top_header_navigation(); ?><div class="clearfix"></div></div></div>
<div class="header">

  <div class="header_in">
    <div class="logo">
      <?php templ_site_logo(); ?>
    </div>
    <div class="header_center">
        <?php if (function_exists('dynamic_sidebar')){ dynamic_sidebar('header_logo_center_side'); }?>
        <?php templ_get_main_header_navigation(); ?>
    </div>
    <div class="header_right">	
      <?php if (function_exists('dynamic_sidebar')){ dynamic_sidebar('header_logo_right_side'); }?>
      <?php include(TEMPLATEPATH."Child/header_searchform.php");?>
    </div>
  </div> <!-- header inner #end -->
</div> <!-- header #end -->
 
 <!-- main navi #end -->
<?php templ_header_end(); // Header End hooks ?>

<?php templ_content_start(); // content start hooks ?>

		
<?php  if ( is_home() && !isset($_GET['ptype'])) { ?>

    	
	<?php if ( function_exists('is_sidebar_active') && is_sidebar_active('front_top_banner') ) {?>
	<div class="top_banner_section">
		<div class="upper_edge"></div>
		<div class="banner_content">
			<?php dynamic_sidebar('front_top_banner'); ?>
		</div>
		<div class="lower_edge"></div>
	</div>
	<?php } else {?>  <?php }?> 
    
<?php } else {  ?> <?php } ?> 
<!-- Container -->
<div id="container" class="clear">